package com.blqy.fr.model.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blqy.fr.model.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * VIP套餐实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "VipPackage")
@TableName("vip_package")
public class VipPackage extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "VIP套餐编码（如：vip_month, vip_year）")
    @TableField("code")
    private String code;

    @Schema(description = "套餐名称（如：月度会员）")
    @TableField("name")
    private String name;

    @Schema(description = "有效期天数（如：30、90、365）")
    @TableField("valid_days")
    private Integer validDays;

    @Schema(description = "价格（单位：元）")
    @TableField("price")
    private BigDecimal price;

    @Schema(description = "状态：启用/禁用")
    @TableField("status")
    private Integer status;
}